package com.cloud.test.region.zuul.route;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * @classname: GrayRuleProperties
 * @description:
 * @author: lds
 * @date: 2020/12/16 14:24
 * @version: V1.0
 */
@Data
@Component
@ConfigurationProperties(prefix = "gray.rule")
public class GrayRuleProperties {

    /**
     * 灰度cookie name值
     */
    private String grayName;

    /**
     * 灰度cookie值
     */
    private String grayValue;

    /**
     * 灰度调用的区域
     */
    private String zone;

    /**
     * 跨区域调用，默认 true
     * 允许跨区域调用，当前区域所有服务节点全部故障，可以跨区域调用其他节点
     */
    private boolean transZone = true;
}
